<?php
/**
 * Yii view index
 *
 * @author <KTD SOFT>
 * @since Jan 10, 2013 - 2:05:24 AM
 */
?>
<form class=" row-fluid" style="text-align: center;font-weight: 700;margin-top: 10px;"class="text-center row-fluid" method="GET" >
    <div class=""> 
        <input name='lang' value="<?php echo $this->lang ?>" type="hidden">
        Tìm theo trạng thái:
        <?php
        $web_title = array('' => 'Chọn trạng thái');
        $web_array = $web_title + Contact::getArrayStatus();
        $select    = (isset($_GET['status'])) ? $_GET['status'] : '';
        echo CHtml::dropDownList('status', $select, $web_array, array(
            "onchange" => "this.form.submit();"
        ));
        ?>
        <div class="clear"></div>
    </div>
</form>
<?php
$this->widget('DataTable', array(
    'model'       => $this->model,
    'title'       => $this->pageTitle,
    'fieldSearch' => 'name',
    'columns'     => array(
        'name',
        'title',
        'email',
        'phone',
        array(
            'name'  => Yii::t('sub_all', 'Send at'),
            'value' => '$data->formatDate',
        ),
        array(
            'name'  => Yii::t('datatable', 'Status'),
            'value' => '$data->statusLabel',
        ),
    ),
));
